﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace TripleTriad
{
    [DataContract] 
    public class Utente
    {
        [DataMember]
        public int id;
        [DataMember]
        public string username; //nome utente
        [DataMember]
        public string img; //immagine profilo
        [DataMember]
        public int points; //punti per acquistare nuove carte
        [DataMember]
        public int level; //livello del giocatore

        public int getId() { return id; }
        public string getUsername() { return username; }
        public string getImg() { return img; }
        public int getPoints() { return points; }
        public int getLevel() { return level; }

        public void setPoints(int newpoints) { this.points = newpoints; }

        public Utente(int id, string username, string img, int points, int level)
        {
            this.id = id;
            this.username = username;
            this.img = img;
            this.points = points;
            this.level = level;
        }
    }
}
